package com.itheima.io.properties.demo04;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;
import java.util.Set;

public class PropertiesDemo01 {

    public static void main(String[] args) throws IOException {

        Properties properties = new Properties();

        properties.load(new FileReader("itheima-io-properties\\userInfo.properties"));

        Set<String> names = properties.stringPropertyNames();
        for(String name : names) {
            String value = properties.getProperty(name);
            System.out.println(name + "----" + value);
        }

    }

}
